<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<style type="text/css">
#insert{
	display: inline-block;
	margin-left: 30px;
}
#all{
	margin-left: 35%;
	text-align: center;
	display: inline-block;
}

#update{
	display: inline-block;
	margin-left: 30px;
}

</style>
</head>
<body>
<div id="all">
<form >
	<table border="1">
		<tr>
			<th>编号</th>
			<th>姓名</th>
			<th>电话号码</th>
			<th>年龄</th>
			<th>薪水</th>
		</tr>
		<c:forEach items="${list }" var="e">
		<tr>
			<td>${e.id}</td>
			<td>${e.name}</td>
			<td>${e.phone}</td>
			<td>${e.age}</td>
			<td>${e.salary}</td>
			<td><a href="/employee/delet?id=${e.id }">删除</a></td>
		</tr>
		</c:forEach>
	</table>
</form>
</div>
<div id="insert">
	<form action="/employee/insert">
	<table border="1">
		<tr>
		<td>电话</td>
		<td><input type="text" name="phone"></td>
		</tr>
		<tr>
		<td>姓名</td>
		<td><input type="text" name="name"></td>
		</tr>
		<tr>
		<td>年龄</td>
		<td><input type="text" name="age"></td>
		</tr>
		<tr>
		<td>薪水</td>
		<td><input type="text" name="salary"></td>
		</tr>
		<tr>
		<td><input type="submit" value="添加"></td>
		</tr>
	</table>
	</form>
</div>

<div id="update">
	<form action="/employee/update">
	<table border="1">
		
		<tr>
		<td>编号</td>
		<td><input type="text" name="id"></td>
		</tr>
		<tr>
		<td>电话</td>
		<td><input type="text" name="phone"></td>
		</tr>
		<tr>
		<td>姓名</td>
		<td><input type="text" name="name"></td>
		</tr>
		<tr>
		<td>年龄</td>
		<td><input type="text" name="age"></td>
		</tr>
		<tr>
		<td>薪水</td>
		<td><input type="text" name="salary"></td>
		</tr>
		<tr>
		<td><input type="submit" value="修改"></td>
		</tr>
	</table>
	</form>
</div>


</body>
</html>